package com.lovo.service.serviceImpl;

import com.lovo.bean.GoodsOrder;
import com.lovo.dao.GoodsOrderMapper;
import com.lovo.service.IGoodsOrderService;
import com.lovo.util.SqlSessionUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class GoodsOrderImpl implements IGoodsOrderService {
    @Override
    public List<GoodsOrder> getAll() {
        SqlSession sqlSession = SqlSessionUtil.getSqlSession();
        GoodsOrderMapper mapper = sqlSession.getMapper(GoodsOrderMapper.class);
        List<GoodsOrder> all = mapper.getAll();
        return all;
    }
}
